parse

parses an expression

Return

Expression parsed from the passed string

Author

fzzyhmstrs

Since

0.2.0

Parameters

str

the math expression to try parsing. Used as the expression context (this is typical)

Throws

when parsing fails


fun parse(str: String, context: String): Expression

Deprecated

Consider using parse(str) to automatically pass the string expression as it's own context

parses an expression

Return

Expression parsed from the passed string

Author

fzzyhmstrs

Since

0.2.0

Parameters

str

the math expression to try parsing

context

the context the expression is coming from

Throws

when parsing fails